package com.xinhe.web.reposity;

import com.xinhe.web.entity.TeamGoods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface TeamGoodsRepository  extends JpaRepository<TeamGoods, Long> {
    @Query(value = "select * from tb_team_goods where removed = 0 and f_goods_id = ?1 ", nativeQuery = true)
    TeamGoods findByGoodsId(Long goodsId);

}
